package com.tanhua.dubbo.api;


import com.tanhua.model.mongo.FocusUser;
import com.tanhua.model.mongo.Video;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface VideoApi {

     //保存小视频
    String save(Video video);

    //根据vid查询数据列表
    List<Video> findVideosByVids(List<Long> vids);

    //分页查询数据列表
    List<Video> queryVideoList(int page, Integer pagesize);

    PageResult findByUserId(Integer page, Integer pagesize, Long uid);


    // 关注视频作者
    Boolean focus(Long followUserId, Long userId);

    void saveFocus(FocusUser focusUser);

    // 取消关注
    void deleteFocus(FocusUser focusUser);
}